package ooday04;

public class Master {

    void feed(Animal animal) {//eat方法范围扩大
        System.out.print("主人喂食：");
        animal.eat();
    }

    /*void feed (Dog dog){
        dog.eat();
    }

    void feed(Fish fish){
        fish.eat();
    }
    */



}
